package javabase.desginpattern.structure.adapter;

import javabase.desginpattern.structure.adapter.classadapter.Adaptee;
import javabase.desginpattern.structure.adapter.classadapter.Adapter;
import javabase.desginpattern.structure.adapter.classadapter.Target;
import javabase.desginpattern.structure.adapter.objectadapter.ObjectAdapter;

/**
 * @author fance
 * @date 18-4-26 下午4:37
 */
public class Client {

    public static void main(String[] args) {
        Target adapter = new Adapter();
        adapter.request();
        Target objAdapter = new ObjectAdapter(new Adaptee());
        objAdapter.request();
    }
}
